package com.jtf.esdemo.domain.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
import java.time.LocalDateTime;

import static com.jtf.esdemo.constants.EsConstants.TEST_ENTITY_DOCUMENT_INDEX;

/**
 * 测试数据
 * @
 */
@Data
@Document(indexName = TEST_ENTITY_DOCUMENT_INDEX)
public class TestEntity implements Serializable {


    @Id()
    protected Long id;

    /**
     * ip
     */
    @Field()
    protected String ip;

    /**
     * 访问时间
     */
    @Field
    protected Long visitTime;


    /**
     * 类型
     */
    protected Integer type;
}
